from django.urls import path
from django.conf.urls import url, include
from rest_framework.routers import SimpleRouter
from .views import CategoryViewSet, UploadViewSet

app_name = 'system'
urlpatterns = [
    # path('upload/', UploadViewSet.as_view())  # 初始化 分类、标签
]

router = SimpleRouter()
router.register('category', CategoryViewSet)
router.register('upload', UploadViewSet)
urlpatterns += router.urls
